import { request } from "@/utils/http";

export function getGoodsDetails(params: any) {
    return request({
      method: 'GET',
      url: '/materials/api/client/goods/details',
      params
    });
}

// 收藏商品
export function favoriteGoods(data: any) {
    return request({
      method: 'POST',
      url: '/materials/api/client/favorite/add',
      data
    });
}

// 删除收藏
export function removeFavorite(data: any) {
    return request({
      method: 'POST',
      url: '/materials/api/client/favorite/remove',
      data
    });
}


export function getFavoriteList(params: any) {
  return request({
    method: 'GET',
    url: '/materials/api/client/favorite/list',
    params
  });
}

// 查询sku信息
export function getskuInfo(params: any) {
    return request({
      method: 'GET',
      url: '/materials/api/client/goods/skuInfo',
      params
    });
}